package com.control.mbtc.fragments.main;


import android.widget.Button;

import com.control.mbtc.R;
import com.zzyd.common.app.AppFragment;
import com.zzyd.common.utils.key.AESUtils;
import com.zzyd.common.utils.key.RSAUtils;
import com.zzyd.factory.net.account.AccountDataHelper;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author wjunjie
 * @version 1.0
 * @E-mail wang_junjie007@163.com
 * @company ZZYD
 * @createTime 2018/7/16 10:41
 * @类注释: 聊天室
 */
public class ChatFragment extends AppFragment {
    @BindView(R.id.btn_sub)
    Button button;


    public ChatFragment() {
        // Required empty public constructor
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.fragment_chat;
    }

    @Override
    protected void initData() {
        super.initData();

    }

    @OnClick(R.id.btn_sub)
    void clci(){
        try {
            String data = AESUtils.encryptData(AccountDataHelper.KEY, "124.156425645254");
            AccountDataHelper.forgetPwd(data,RSAUtils.encryptByPublicKey(AccountDataHelper.KEY));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
